home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 March
/
PCWorld_2007-03_cd.bin
/
komunikace
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Text Blinker.sd
< prev
next >
Wrap
INI File
|
2006-09-13
|
1KB
|
63 lines
[SUBJECT]
Description=The text changes color every second
ImageIndex=-1
Folder=Text Effects
[BODY_TEXT]
;<!-- This script and many more are available free online at -->
;<!-- The JavaScript Source!! http://javascript.internet.com -->
;
;<script language="JavaScript1.2">
;
;<!-- Begin
;function initArray() {
;this.length = initArray.arguments.length;
;for (var i = 0; i < this.length; i++) {
;this[i] = initArray.arguments[i];
; }
;}
;
;var ctext = "`text`";
;var x = 0;
;var color = new initArray(
;"red",
;"blue",
;"green",
;"black"
;);
;if(navigator.appName == "Netscape") {
;document.write('<layer id="c"><center>'+ctext+'</center></layer><br>');
;}
;if (navigator.appVersion.indexOf("MSIE") != -1){
;document.write('<div id="c"><center>'+ctext+'</center></div>');
;}
;function chcolor(){
;if(navigator.appName == "Netscape") {
;document.c.document.write('<center><font color="'+color[x]);
;document.c.document.write('">'+ctext+'</font></center>');
;document.c.document.close();
;}
;else if (navigator.appVersion.indexOf("MSIE") != -1){
;document.all.c.style.color = color[x];
;}
;(x < color.length-1) ? x++ : x = 0;
;}
;setInterval("chcolor()",`timeout`);
;// End -->
;</script>
[`text`]
Kind=S
Value=Wow! Look at all the pretty colors!
[`timeout`]
Kind=N
Value=1000